package com.acme.bankapp.domain.exceptions;

import com.acme.bankapp.domain.bank.Account;

public class OverDraftLimitExceededException extends NotEnoughFundsException{
	private Account account;
	
	public OverDraftLimitExceededException(Account acc){
		this.account = acc;
	}
	
	public double getMaximumAmountToWithdraw(){
		return this.account.maximumAmountToWithdraw();
	}
}
